﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage/AdminMasterPage.master" AutoEventWireup="true" CodeFile="quan-ly-binh-luan.aspx.cs" Inherits="Admin_quan_ly_binh_luan" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <h1>Bình Luận Nhà Hàng</h1>
    <span>Chọn nhà hàng</span><asp:DropDownList ID="ddlRes" runat="server" 
        AutoPostBack="true" onselectedindexchanged="ddlRes_SelectedIndexChanged">
    </asp:DropDownList>
    <asp:GridView ID="grvResComment" runat="server" AllowPaging="True" 
        AutoGenerateColumns="False" DataKeyNames="BinhLuanID" 
        onrowcancelingedit="grvResComment_RowCancelingEdit" 
        onrowdeleting="grvResComment_RowDeleting" 
        onrowediting="grvResComment_RowEditing" 
        onrowupdating="grvResComment_RowUpdating" 
        onpageindexchanging="grvResComment_PageIndexChanging">
        <Columns>
            <asp:BoundField DataField="TenNhaHang" HeaderText="Tên Nhà Hàng" />
            <asp:BoundField DataField="NoiDung" HeaderText="Bình Luận" />
            <asp:BoundField DataField="Email" HeaderText="User" />
            <asp:CheckBoxField DataField="IsActive" HeaderText="IsActive" />
            <asp:CommandField ButtonType="Button" HeaderText="Sửa" ShowEditButton="True" />
            <asp:CommandField ButtonType="Button" HeaderText="Xóa" 
                ShowDeleteButton="True" />
        </Columns>
    </asp:GridView><br />
    <h1>Bình Luận Bài Viết</h1>
    <span> Chọn bài viết</span><asp:DropDownList ID="ddlPost" runat="server" 
        AutoPostBack="true" onselectedindexchanged="ddlPost_SelectedIndexChanged">
    </asp:DropDownList>
    <asp:GridView ID="grvPostComment" runat="server" AllowPaging="True" 
        AutoGenerateColumns="False" DataKeyNames="BinhLuanID" 
        onrowcancelingedit="grvPostComment_RowCancelingEdit" 
        onrowdeleting="grvPostComment_RowDeleting" 
        onrowediting="grvPostComment_RowEditing" 
        onrowupdating="grvPostComment_RowUpdating" 
        onpageindexchanging="grvPostComment_PageIndexChanging">
        <Columns>
            <asp:BoundField DataField="TieuDe" HeaderText="Tiêu Đề" />
            <asp:BoundField DataField="NoiDung" HeaderText="Bình Luận" />
            <asp:BoundField DataField="Email" HeaderText="User" />
            <asp:CheckBoxField DataField="IsActive" HeaderText="IsActive" />
            <asp:CommandField ButtonType="Button" HeaderText="Sửa" ShowEditButton="True" />
            <asp:CommandField ButtonType="Button" HeaderText="Xóa" 
                ShowDeleteButton="True" />
        </Columns>
    </asp:GridView><br />
</asp:Content>

